home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / falcon / programm.ing / nt_dsp1.lzh / NT_DSP1.MSA / FNTNS / LOG2NRMT.ASM < prev    next >
Assembly Source File  |  1989-01-24  |  1KB  |  39 lines

  1. ;
  2. ; This program originally available on the Motorola DSP bulletin board.
  3. ; It is provided under a DISCLAMER OF WARRANTY available from
  4. ; Motorola DSP Operation, 6501 Wm. Cannon Drive W., Austin, Tx., 78735.
  5. ; LOG2NRM Macro Test Program
  6. ; Last Update 30 Mar 87   Version 1.0
  7. ;
  8. ; This is a test program demonstrating the use of the LOG2NRM macro.
  9. ;
  10. log2nrmt        ident   1,0
  11.         opt     cex
  12.         page    132,66,0,0
  13.         nolist
  14.         include 'dsplib:ioequ'
  15.         list
  16.         include 'dsplib:log2nrm'
  17.  
  18. datin   equ     $ffff           ;location in y memory of input file
  19. datout  equ     $fffe           ;location in y memory of output file
  20.  
  21.         org     y:0
  22. pcoef   dc      .9981958,-.3372223,-.6626105    ;a1,a2,a0
  23.  
  24.         org     p:$100
  25. start
  26.         movep   #0,x:M_BCR      ;no wait states on external io
  27. ;
  28.         do      #100,_e         ;number of points to do
  29.         move    #pcoef,r1       ;point to poly coef
  30.         movep   y:datin,a       ;get input value
  31. ;
  32.         log2nrm                 ;take log2 of a
  33. ;
  34.         movep   a,y:datout
  35. _e
  36.         end
  37.